Optimal. Leaf size=29 \[ \frac{\sec (c+d x)}{a d}-\frac{\tanh ^{-1}(\cos (c+d x))}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0575448, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {3175, 2622, 321, 207} \[ \frac{\sec (c+d x)}{a d}-\frac{\tanh ^{-1}(\cos (c+d x))}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 2622
Rule 321
Rule 207
Rubi steps
\begin{align*} \int \frac{\csc (c+d x)}{a-a \sin ^2(c+d x)} \, dx &=\frac{\int \csc (c+d x) \sec ^2(c+d x) \, dx}{a}\\ &=\frac{\operatorname{Subst}\left (\int \frac{x^2}{-1+x^2} \, dx,x,\sec (c+d x)\right )}{a d}\\ &=\frac{\sec (c+d x)}{a d}+\frac{\operatorname{Subst}\left (\int \frac{1}{-1+x^2} \, dx,x,\sec (c+d x)\right )}{a d}\\ &=-\frac{\tanh ^{-1}(\cos (c+d x))}{a d}+\frac{\sec (c+d x)}{a d}\\ \end{align*}
Mathematica [A] time = 0.0429316, size = 46, normalized size = 1.59 \[ \frac{\frac{\sec (c+d x)}{d}+\frac{\log \left (\sin \left (\frac{1}{2} (c+d x)\right )\right )}{d}-\frac{\log \left (\cos \left (\frac{1}{2} (c+d x)\right )\right )}{d}}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.06, size = 51, normalized size = 1.8 \begin{align*}{\frac{1}{da\cos \left ( dx+c \right ) }}+{\frac{\ln \left ( -1+\cos \left ( dx+c \right ) \right ) }{2\,da}}-{\frac{\ln \left ( 1+\cos \left ( dx+c \right ) \right ) }{2\,da}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.948757, size = 62, normalized size = 2.14 \begin{align*} -\frac{\frac{\log \left (\cos \left (d x + c\right ) + 1\right )}{a} - \frac{\log \left (\cos \left (d x + c\right ) - 1\right )}{a} - \frac{2}{a \cos \left (d x + c\right )}}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.6274, size = 157, normalized size = 5.41 \begin{align*} -\frac{\cos \left (d x + c\right ) \log \left (\frac{1}{2} \, \cos \left (d x + c\right ) + \frac{1}{2}\right ) - \cos \left (d x + c\right ) \log \left (-\frac{1}{2} \, \cos \left (d x + c\right ) + \frac{1}{2}\right ) - 2}{2 \, a d \cos \left (d x + c\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \frac{\int \frac{\csc{\left (c + d x \right )}}{\sin ^{2}{\left (c + d x \right )} - 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.16671, size = 84, normalized size = 2.9 \begin{align*} \frac{\frac{\log \left (\frac{{\left | -\cos \left (d x + c\right ) + 1 \right |}}{{\left | \cos \left (d x + c\right ) + 1 \right |}}\right )}{a} + \frac{4}{a{\left (\frac{\cos \left (d x + c\right ) - 1}{\cos \left (d x + c\right ) + 1} + 1\right )}}}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]